
import { api } from '@/utils/request'
// 获取品牌数据
export const findBrand = (limit = 6) => {
  return api({
    method: 'get',
    url: '/home/brand',
    data: { limit }
  })
}
// 获取广告图
// @returns Promise

export const findBanner = () => {
  return api({
    method: 'get',
    url: '/home/banner'
  })
}
export const findNew = () => {
  return api({
    method: 'get',
    url: 'home/new'
  })
}
// 人气推荐
export const findHot = () => {
  return api({
    method: 'get',
    url: 'home/hot'
  })
}
// 获取商品信息
export const findGoods = () => {
  return api({
    method: 'get',
    url: 'home/goods'
  })
}
// 分类
export const findTopCategory = (id) => {
  return api({
    method: 'get',
    url: '/category',
    data: { id }
  })
}
